import service from "@/utils/request";

export function useCreateVehicleApi(data: object){
    return service.post("/slag-truck/vehicle", data)
}

export function useUpdateVehicleApi(data: object){
    return service.put("/slag-truck/vehicle", data)
}

export function useGetVehicleInfoApi(id: string | number){
    return service.get("/slag-truck/vehicle/" + id)
}

export function useGetDriverSelect(){
    return service.get("/slag-truck/vehicle/select/driver")
}
export function useVehicleDel(id: string | number){
    return service.delete("/slag-truck/vehicle/" + id)
}

export function useGetVehicleListApi(){
    return service.get("/slag-truck/vehicle/select")
}
